package com.yhq.spring.spring.conf;

import com.yhq.spring.manual.test.PersonService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author hqyin
 * @date 2023/1/30 10:48 上午
 */
@Configuration
@ComponentScan(basePackages = "com.yhq.spring.spring")
//@EnableAspectJAutoProxy
public class AppConfig {
    @Bean
    public PersonService personService () {
        return new PersonService();
    }

//    @Bean
//    public ConversionServiceFactoryBean conversionService() {
//        ConversionServiceFactoryBean conversionServiceFactoryBean = new ConversionServiceFactoryBean();
//        conversionServiceFactoryBean.setConverters(Collections.singleton(new StringToUserConverter()));
//        return conversionServiceFactoryBean;
//    }
}
